package com.enjoyor.soa.traffic.api.dto.mtps;

import java.io.Serializable;
import java.util.Date;

public class AppMessageUserDto implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -3783095409671489221L;

    private String id;

    private String messageId;

    private String userId;

    private String userName;

    private boolean isDelete;

    private Date deleteTime;

    private boolean isSuccess;

    private boolean isRead;

    public AppMessageUserDto(AppMessageUserDto appMessageUserDto) {
        this.id = appMessageUserDto.getId();
        this.messageId = appMessageUserDto.getMessageId();
        this.userId = appMessageUserDto.getUserId();
        this.userName = appMessageUserDto.getUserName();
        this.isDelete = appMessageUserDto.getIsDelete();
        this.deleteTime = appMessageUserDto.getDeleteTime();
        this.isSuccess = appMessageUserDto.getIsSuccess();
        this.isRead = appMessageUserDto.getIsRead();
    }

    public AppMessageUserDto() {
    }

    public static class Builder {
        AppMessageUserDto appMessageUserDto;

        public Builder() {
            appMessageUserDto = new AppMessageUserDto();
        }

        public Builder id(String id) {
            appMessageUserDto.setId(id);
            return this;
        }

        public Builder messageId(String messageId) {
            appMessageUserDto.setMessageId(messageId);
            return this;
        }

        public Builder userId(String userId) {
            appMessageUserDto.setUserId(userId);
            return this;
        }

        public Builder userName(String userName) {
            appMessageUserDto.setUserName(userName);
            return this;
        }

        public Builder isDelete(boolean isDelete) {
            appMessageUserDto.setIsDelete(isDelete);
            return this;
        }

        public Builder deleteTime(Date deleteTime) {
            appMessageUserDto.setDeleteTime(deleteTime);
            return this;
        }

        public Builder isSuccess(boolean isSuccess) {
            appMessageUserDto.setIsSuccess(isSuccess);
            return this;
        }

        public Builder isRead(boolean isRead) {
            appMessageUserDto.setIsRead(isRead);
            return this;
        }

        public AppMessageUserDto build() {
            return new AppMessageUserDto(this.appMessageUserDto);
        }
    }

    public void setIsRead(boolean isRead) {
        this.isRead = isRead;
    }

    public boolean getIsRead() {
        return this.isRead;
    }

    public void setIsSuccess(boolean isSuccess) {
        this.isSuccess = isSuccess;
    }

    public boolean getIsSuccess() {
        return this.isSuccess;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() {
        return this.deleteTime;
    }

    public void setIsDelete(boolean isDelete) {
        this.isDelete = isDelete;
    }

    public boolean getIsDelete() {
        return this.isDelete;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getMessageId() {
        return this.messageId;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return this.id;
    }

}
